//
//  PPAlbumModel.h
//
//
//  Created by Jinxiao on 8/28/16.
//
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

#import "PPAlbumImageModel.h"
#import "PPAlbumTagModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface PPAlbumModel : NSManagedObject

// Insert code here to declare functionality of your managed object subclass

+ (instancetype)existingAlbumForUUID:(NSString *)uuid;

@property (readonly) NSString *coverURLString;

- (void)queryCoverImageWithCompletion:(void (^)(UIImage *image, NSError *error))completion;

- (void)queryAlbumCoverImageWithCompletion:(void (^)(UIImage *,NSString *coverString, NSError *))completion;

@end

NS_ASSUME_NONNULL_END

#import "PPAlbumModel+CoreDataProperties.h"
